<template>
  <div>
    <router-view/>
    <ul class='wrap'>
      <li class='li-wrap'>
        <router-link :to="{name:'list'}">新闻列表</router-link>
      </li>
      <li class='li-wrap'>
        <router-link :to="{name:'user'}">个人中心</router-link>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name:"home"

}
</script>

<style lang='scss'>
.wrap{
  width:100%;
  height: 40px;
  line-height: 40px;
  position: fixed;
  left:0;
  bottom: 0;
  display: flex;
  list-style: none;
  flex-flow: row nowrap;
  justify-content: space-around;
  
}
.li-wrap{
flex:1;
font-size:16px;
border-top: 1px solid #42b983;
text-align: center;
     a{
      display: block;
      color: #42b983;
      &.active{
        color:#fff;
        background:#42b983;
      }

}

}

</style>